﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WeManageService;

namespace WeManageForm
{
    public partial class PlanNotifyForm : Form
    {
        public PlanNotifyForm (List<Plan> plans, int state)
        {
            InitializeComponent();
            DGVplans.DataSource = BSPlan;
            BSPlan.DataSource = plans;
			if (state == 0)
			{
				lblTitle.Text = "任务提醒：以下是即将开始的任务";
			}
			else
			{
				lblTitle.Text = "任务提醒：以下是即将结束的任务";
			}
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
	}
}
